package com.xiaoxi.exam.bean.request;

import lombok.Data;
import org.springframework.util.StringUtils;

import java.util.Objects;

@Data
public class UpdateOrderRequest extends BaseOrderRequest {

    private String orderId;

    public boolean invalid() {
        return Objects.isNull(getOrderInfos()) || getOrderInfos().isEmpty() || StringUtils.isEmpty(getOpenId());
    }
}
